﻿package frEngine.animateControler.particleControler
{

    public class XYZObject extends Object
    {
        public var x:Number = 0;
        public var y:Number = 0;
        public var z:Number = 0;
        public var w:Number = 1;

        public function XYZObject()
        {
            return;
        }// end function

        public function init(param1:Number, param2:Number, param3:Number, param4:Number = 1) : void
        {
            this.x = param1;
            this.y = param2;
            this.z = param3;
            this.w = param4;
            return;
        }// end function

        public function normalize() : void
        {
            var _loc_1:* = this.x * this.x + this.y * this.y + this.z * this.z;
            _loc_1 = Math.sqrt(_loc_1);
            this.x = this.x / _loc_1;
            this.y = this.y / _loc_1;
            this.z = this.z / _loc_1;
            return;
        }// end function

    }
}
